﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using SF.Base.Core;

namespace SF.Dict.Web.UserControls {
	public partial class ucHeader : BaseControl {
		public string PageName {
			get;
			set;
		}

		protected void Page_Load(object sender, EventArgs e) {
			if (DTUser != null) {
				hl_user.NavigateUrl = "/user.aspx?uid=" + UID;
				hl_user.Text = DTUser.NiceName;

				//查询我创建词汇表
				List<VocabularyEntity> vocs = VocabularyRules.GetUserCreateVocabularysByUserId(UserId);

				rp_popvoclist.DataSource = vocs;
				rp_popvoclist.DataBind();
			}
		}
	}
}